﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ImpresionMasiva.aspx.cs" Inherits="Secretaria_bol"  Theme=""%>

<form id="form1" runat="server">
<!-- MeadCo ScriptX Control -->
<object id="factory" style="display:none" classid="clsid:1663ED61-23EB-11D2-B92F-008048FDD814" codebase="../ActiveX/smsx.cab#Version=6,3,435,20">
</object>
<div id="installFailure" style="display: none;">
	<h2>It appears ScriptX is unavailable or has failed to install.</h2>
	<p><b>Has the Infobar appeared?</b></p>
	<p>If you are using Internet Explorer 6 or later on Windows XP SP2 or later then the Explorer Information bar may appear while trying to install ScriptX, it looks like this:</p>
	<p style="padding: 4px"><img src="..\infobar.png"></p>
	<p>If the bar has appeared, follow the instructions: click on the bar and then select <i>Install ActiveX Control...</i></p>
	<p><b>Are you an administrator?</b></p>
	<p>ScriptX is code that requires you have administrator rights on your machine in order to install it successfully.</p>
	<p>If you are not an administrator, please contact your administrator and ask them to install ScriptX for you.</p>
</div>
<script>
window.onbeforeprint=beforePrint
window.onafterprint=afterPrint

function beforePrint()
{
	document.body.style.zoom =  document.getElementById("zoom").value/100;
	//document.getElementById("Print").style.display = "";
	//document.getElementById("Comentario").style.display = "none";
}

function afterPrint()
{
	document.body.style.zoom = "100%";
	//document.getElementById("Print").style.display = "none";
	//document.getElementById("Comentario").style.display = "";
	//document.getElementById("Comentario").innerHTML = "Abriendo configuración de impresora...";
	//window.setTimeout("Listo();",3000);
}

function Listo()
{
	//document.getElementById("Comentario").innerHTML = "Listo!";
}

function setInstallStyles(fOK) {
	document.getElementById("installFailure").runtimeStyle.display = fOK ? "none" : "block";
	document.getElementById("installOK").runtimeStyle.display = fOK ? "block" : "none";
}
function okInstall() {
//	setInstallStyles(true);
}
function noInstall() {
//	setInstallStyles(false);
    aler("problemas");
}

function viewinit() {
  if (!factory.object) {
  	noInstall();
  	return
  } else {
  okInstall();
  factory.printing.header = ""
  factory.printing.footer = ""
  factory.printing.portrait = false
  //factory.printing.leftMargin = '0.1';
  //factory.printing.topMargin = '0.1';
  //factory.printing.rightMargin = '0.1';
  //factory.printing.bottomMargin = '0.1';


  // enable control buttons
  var templateSupported = factory.printing.IsTemplateSupported();
  var controls = idControls.all.tags("input");
  for ( i = 0; i < controls.length; i++ ) {
    controls[i].disabled = false;
    if ( templateSupported && controls[i].className == "ie55" )
      controls[i].style.display = "inline";
    }
  }
}

</script>
    <asp:placeholder id="PlaceHolder1" runat="server"></asp:placeholder>
    <div id="renderxml" runat="server"> asdasd</div>

</form>
<script language="javascript">

//viewinit;
function miPrint(){
  factory.printing.header = "";
  factory.printing.footer = "";
  factory.printing.portrait = false;
  factory.printing.Print(false);
   
}

</script>
